package com.xbongbong.saas.model.impl;

import com.xbongbong.saas.domain.dao.CoolAppCardTemplateDao;
import com.xbongbong.saas.domain.entity.CoolAppCardTemplateEntity;
import com.xbongbong.saas.model.CoolAppCardTemplateModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/***
 *
 * @author hongxiao
 * @date 2022-06-09 10:24
 * @since
 * @version
 */
@Service("coolAppCardTemplateModel")
public class CoolAppCardTemplateModelImpl implements CoolAppCardTemplateModel {
    @Resource
    private CoolAppCardTemplateDao coolAppCardTemplateDao;

    @Override
    public Integer insert(CoolAppCardTemplateEntity entity) {
        return coolAppCardTemplateDao.insert(entity);
    }

    @Override
    public void insertBatch(List<CoolAppCardTemplateEntity> list) {
        coolAppCardTemplateDao.insertBatch(list);
    }

    @Override
    public List<CoolAppCardTemplateEntity> findEntitys(Map<String, Object> param) {
        return coolAppCardTemplateDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return coolAppCardTemplateDao.getEntitysCount(param);
    }

    @Override
    public Integer update(CoolAppCardTemplateEntity entity) {
        return coolAppCardTemplateDao.update(entity);
    }

    @Override
    public CoolAppCardTemplateEntity getByKey(Long key) {
        return coolAppCardTemplateDao.getByKey(key);
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return coolAppCardTemplateDao.findEntitys(param);
    }

    @Override
    public CoolAppCardTemplateEntity getByUseScene(Integer cardType, Integer useScene) {
        return coolAppCardTemplateDao.getByUseScene(cardType, useScene);
    }

    @Override
    public CoolAppCardTemplateEntity getByCardId(String cardId) {
        return coolAppCardTemplateDao.getByCardId(cardId);
    }
}
